-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating orphan branch #95
Conversation
This provides the ability to create an orphan branch if $INPUT_BRANCH doesn't exist. |
Hi 👋 Never heard of orphan branches before. So I'm curious: in which scenarios are such branches useful? Maybe you can give an example workflow file? |
@stefanzweifel Hi 👋 , thanks for replying! This is actually a specific usecase that we want to commit on another branch, and if the branch doesn't exist, created an orphan branch(which has no git history). We use this on one of our repo so that we can commit generated changes to another branch without creating empty branch manually. Here is an example https://github.com/StrongMonkey/charts-1/blob/branch-asset/.github/workflows/push.yml#L18-L22 |
Sounds reasonable. Will merge and tag a new version soon. |
Hi guys! For some reason I even tried using an env but no luck https://github.com/nuxt/create-nuxt-app/blob/6c17f81f5be165989a00b0d34412f48fbebb1f76/.github/workflows/snapshot.yml#L40 |
@pi0 Thanks for reporting! Seems this PR really has broken everything. Sorry for that. The changes have been reverted in #97 and released in @StrongMonkey For your own workflows, you would have to revert to your fork for now. Will work on a test suite over the next few days/weeks to make sure new features can be added with confidence. |
No description provided.